package object02;

/**
 * @TODO
 * @Author xu
 * 2025/3/12
 */
public class Test {
    public static void main(String[] args) {
String text = "anglebaby          女          18          5151515aa ";
String []  patrs =text.split("\\s+");
        Person person = new Person(patrs[0], patrs[1], Integer.parseInt(patrs[2]), patrs[3]);
        System.out.println(person);
        if (person.isValidQQNumber()) {
            System.out.println("QQ号码合法。");
        } else {
            System.out.println("QQ号码不合法。");
        }





    }


}
